package baseCom.service.impl;

import baseCom.dao.EmpDao;
import baseCom.pojo.Emp;
import baseCom.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceA implements EmpService {

    @Autowired
    private EmpDao empDao;

    @Override
    public List<Emp> getAllEmp() {
        List<Emp> empList = empDao.getAllEmp();
        for (Emp emp : empList) {
            System.out.println(emp);
        }
        // 这里做业务逻辑处理
        return empList;
    }
}
